<extend name='Public/index'/>
<block name='content'>
<form action="<{:doAddstudent}>" method='post' enctype="multipart/form-data" id="zz" >
<table>
<tr>
	<td>
		<table>
				<tr>
						<td>角色</td>
						<td>
						<select name="role" id="">
						<volist name="role" id="vo">
						<option value="<{$vo.role_id}>"><{$vo.role_name}></option>
						</volist>
						</select>
						</td>
				</tr>
					<tr>
						<td>姓名</td>
						<td><input type="text" name="sname" id="sname" required minlength="2"></td>
					</tr>
					<tr>
						<td>年龄</td>
						<td><input type="text" name="age" id="age" range=[15,50] required></td>
					</tr>
					<tr>
						<td>性别</td>
						<td>
						<select name="sex" id="sex">
						<volist name="sex" id="vo">
						<option value="<{$vo.val}>"><{$vo.val}></option>
						</volist>
						</select>
						</td>
					</tr>
					<tr>
						<td>密码</td>
						<td><input type="password" name="pwd"></td>
					</tr>
					<tr>
						<td>昵称</td>
						<td><input type="text" name="nick" id="nick" maxlength="5" required></td>
					</tr>
					<tr>
						<td>手机</td>
						<td><input type="text" name="tel" required></td>
					</tr>
					<tr>
						<td>备用手机</td>
						<td><input type="text" name="btel"></td>
					</tr>
					<tr>
						<td>固话</td>
						<td><input type="text" name="ftel"></td>
					</tr>
					<tr>
						<td>头像</td>
						<td><input type="file" name="photo"></td>
					</tr>
					<tr>
						<td>锁定</td>
						<td><input type="text" name="lock"></td>
					</tr>
					<tr>
						<td>学期</td>
						<td>
						<select name="term_id" id='term_no'>
						<volist name="term_no" id="vo">
						<option value="<{$vo.val}>"><{$vo.val}></option>
						</volist>
						</select>
						</td>
					</tr>
					<tr>
						<td>身份证</td>
						<td><input type="text" name="id_card" id="id_card" class="idCard" rangelength=[15,18] required></td>
					</tr>
		</table>
	</td>
	<td>
		<table>		
							<tr>
					<td>邮箱</td>
					<td><input type="text" name="email" required></td>
				</tr>
				<tr>
					<td>家庭地址</td>
					<td>
						<div id='city'>
						<select name="home_prov" id="home_prov" class='prov'></select>
						<select name="home_city" id="home_city" class='city'></select>
						<select name="home_dist" id="home_dist" class='dist'></select>
						<input type="text" name="home_addr">
						</div>
					</td>
				</tr>
				<tr>
					<td>现居地</td>
					<td>
					<div id='city1'>
						<select name="live_prov" id="home_prov" class='prov'></select>
						<select name="live_city" id="home_city" class='city'></select>
						<select name="live_dist" id="home_dist" class='dist'></select>
						<input type="text" name="live_addr">
						</div>
				    </td>
				</tr>
				<tr>
					<td>QQ</td>
					<td><input type="text" name="qq"></td>
				</tr>
				<tr>
					<td>毕业学院</td>
					<td><input type="text" name="school"></td>
				</tr>
				<tr>
					<td>学历</td>
					<td>
						<select name="education" id="education">
						<volist name="education" id="vo">
						<option value="<{$vo.val}>"><{$vo.val}></option>
						</volist>
						</select>
					
					</td>
				</tr>
				<tr>
					<td>毕业时间</td>
					<!-- <td><input type="text" name="leave_time"></td> -->
					<!-- <div id="console" style="background-color:#fff;color:red">sdfdsfsdf</div> -->
					<td><input type="text" name='leave_time' id="datetimepicker3"/></td>

				</tr>
				<tr>
					<td>专业</td>
					<td><input type="text" name="major"></td>
				</tr>
				<tr>
					<td>从何处知道我</td>
					<td><input type="text" name="know_program"></td>
				</tr>
				<tr>
					<td>PHP知道多少</td>
					<td><input type="text" name="try_php"></td>
				</tr>
				<tr>
					<td>学习方式</td>
					<td><input type="text" name="learn_way"></td>
				</tr>
				<tr>
					<td>学习时间</td>
					<td><input type="text" name="learn_time"></td>
				</tr>
		</table>
	</td>
	</tr>
	</table>
	<input class='button' type="submit" value='提交'>
	</form>
	<script>
	$('#city').citySelect();
	$('#city1').citySelect();
	$('#datetimepicker3').datetimepicker({
	inline:true
});


	</script>
	<script src='__VALIDATE__/jquery.validate.js'></script>
			<script src='__VALIDATE__/additional-methods.js'></script>
			<script src='__VALIDATE__/messages_zh.js'></script>
			<script>
				$("#zz").validate({
				    onfocusout: function(element){
				        $(element).valid();
				    }
				});

</script>







	
	</block>
